⚽ Football Analytics
DATA & NOTES
Data workspace

Data & Notes

Audit the live registry, keep browser-local research notes, and understand the automated strategy flow.

● Connecting to live registry
Match Records
—
Live canonical match registry
Source Sheets
—
Source sheets represented in registry
Basic Data Checks
Checking…
Waiting for live registry
Saved Notes
0
Saved in this browser
Your research

Notes stay in this browser; match records are audited from SQLite.

Research notes 0 notes

Assumptions, findings and follow-up actions.

No notes yetCreate your first note to document an observation or follow-up.
0 notes saved in this browser
Registry quality

Automated checks and source coverage from the live match registry.

Data quality checklist

Core fields, IDs, 1X2 odds, score validity and sheet coverage.

Waiting
…
Waiting for live registryQuality checks will run against the actual records returned by /api/matches.
Pending

Source sheets

Live records grouped by workbook sheet.

Waiting for live registry…
Match registry has not loaded yet.—
READ-ONLY PROJECT AUDIT · 22 NOV 2026

Verified project state

Measured from the running desktop service and local SQLite databases on 22 November 2026. These values are an audit snapshot, not automatic live counters. For current match totals use Registry & Quality.

Verified on SAVIOLA
Match registry and quality6,284 records · 7/7 sheets

6,282 parseable full-time scores; 2 without valid FT scores. Core exception count: 0. This does not establish fixture identity or optional metadata completeness.

Strategy and decisions9 Active · LIVE SQLite Manager

The central five-rule register passed 8/8 read-only checks. The recorded-prediction ledger has 2 voided decisions and 0 settled bets; historical P&L is not recorded betting profit.

SoccerRating collection7 strategies · 342 scans

The latest recorded scan was 22 Nov 2026 at 21:16 UTC, with 0 new fixtures. Queue: 0 pending, 12 imported, 1 already registered. The collector was enabled and its last connection check succeeded.

Fixture evidence policy8 retained · 8 disabled

Of the retained sources, 4 are potential automatic voters, 2 are research-only and 2 support identity/artwork. Three independent agreements are still required; registered providers do not guarantee usable votes.

Central team identity29,477 team records

152,121 aliases and 157,313 provider-ID entries are indexed. These are registry rows, not independently approved team identities. Country/competition and crest decisions remain review-controlled.

Workbook, offline and pushWorkbook sync clear · 2 push endpoints

At the audit, the workbook mirror reported no pending sync. Two stored Web Push subscriptions do not prove phone delivery; actual Android offline/edit/push outcomes still require a device test.

Authority boundary: football_analytics.db is the master match and live five-rule Manager registry; the workbook mirrors it. The separate Qualification V2 Python modules remain shadow-only. SoccerRating discovery/verification databases and browser-local research notes are separate. Do not convert archived figures into live values.

Historical evidence, not live countsArchive: 17 Nov 2026, 12:05 · not a live application reading
Snapshot evidence
Stored matches
6,274
Active rules
9
Plan 1 historical
578
Plan 2 historical
8
Pending SoccerRating
1
Official decisions
2 voided
Data interpretation: Historical profit and hit rates are retrospective, not official recorded betting profit. Mobile push, offline reconciliation and current importer scans still require live verification. Read the detailed verification register.
Reference & operating guide

Project manual · current architecture and 14 reference topics

Before changing the live dataset

Protect the live SQLite match registry and its workbook mirror. This page audits and exports records; it does not edit match data.

01 · Preserve the source of truth

SQLite is authoritative. The app snapshots the database and workbook before supported match changes; keep another copy outside this folder.

02 · Reconcile counts

After a match change, compare the live record total, all seven sheet counts, scores and quality exceptions.

03 · Keep an audit trail

Record the issue, evidence, affected source sheet or match ID, expected behaviour, and next action.

How this workspace uses data

Clear boundaries between source records, calculated results, and personal research notes.

Reference

Canonical match registry

Match records come from /api/matches, backed by SQLite. The app syncs the workbook from that database; direct workbook edits do not update live records.

Strategy calculations

The Strategy Performance Manager controls Active rules automatically. Plan 1 takes exactly one Active trigger, Plan 2 takes two or more, and Analytics combines both. Upcoming and unresolved records do not count as settled wins or losses.

Notes and backups

Research notes are stored in this browser. JSON and CSV exports contain notes only; they do not back up or change the SQLite database, workbook or Manager registry.

Recent updates & operating notes

Documentation audited on 22 November 2026 against read-only desktop APIs, SQLite tables and the installed source policy. Current observations are dated; Registry & Quality retains the live match counts, and the 17 November cards remain historical.

22 Nov 2026 audit

SoccerRating collection

The authenticated collector checks seven strategy pages. Its latest verified connection and scan were at 21:16 UTC on 22 November; 342 scans were stored at audit time. The queue has a separate approval boundary: scanning, crest recovery and push alerts cannot auto-import fixtures into SQLite.

Offline and synchronization

Service-worker snapshots can support offline reading, and Matches can queue local Add/Edit/Delete drafts in IndexedDB. Only accepted operations enter SQLite; interrupted-network and device-specific recovery still require controlled verification.

Phone notifications

Two push subscriptions were stored at audit time. Each endpoint is device/browser-specific; push-service acceptance is not proof of a displayed alert. Locked-screen Android delivery and background behavior are not certified by this desktop audit.

Data integrity

The master SQLite database held 6,284 matches with 6,282 valid full-time scores across all seven source sheets. Workbook synchronization reported no pending work at the audit. Match edits, receipt checks and browser-local notes have separate storage boundaries.

LIVE strategy authority

Read-only central verification reported LIVE SQLite cutover, 9 Active rules and 8/8 successful checks. The five-gate lifecycle is production; separate V2 qualification scripts are shadow-only and are not authorized to replace it.

Evidence source policy

Eight providers are retained for new research (4 potential voters, 2 research-only, 2 supporting) and eight legacy sources are disabled for new scans. Historical evidence is preserved; three independent eligible votes are required before an automatic result may be accepted.

Previously documented device test (historical, not rechecked in this audit): An Android device reportedly saved an offline edit, synchronized after reconnection and displayed lock-screen push notifications. This does not certify current phone delivery, offline synchronization or every network condition. Live record and subscription counts are not hard-coded.

Live strategy engine

Strategy qualification

Live five-rule SQLite lifecycle verified on 22 November 2026 against the central authority API and shared strategy-lifecycle.js. Python Qualification V2 remains shadow-only.

5 mandatory rules
  1. At least 50 settled strategy matches
  2. Historical net strictly above GH₵1,000
  3. Historical ROI strictly above 0%
  4. Most recent 20 settled-match net strictly above GH₵0
  5. Performance Score at least 50/100

Separate from qualification: Maximum Drawdown and chronological period analysis are study/monitoring tools. They do not independently promote or demote a strategy.

Performance analysis guide

Risk and chronological evaluation

Historical summaries based on the selected page's settled ledger and analysis scope.

Read-only analysis
RISKMaximum Drawdown

Worst peak-to-trough loss in chronological running profit, with betting units, recovery and trend.

CHRONOLOGICAL STUDYRetrospective evaluation

Reference period versus five later periods; results are not independently verified out-of-sample testing.

INDIVIDUAL & PLAN REGISTRIESStrategy and plan thresholds

Strategy Details: 50; Plan 1: 450 (300 reference); Plan 2: 50 settled matches.

COMBINED REPORTINGAnalytics: 500-match minimum

300 historical-reference matches followed by five periods of at least 40 settled matches each.

Football Analytics — Project Guide

Verified current state (22 November 2026), page responsibilities, qualification authority, the eight-source fixture policy, synchronization, notifications, quality and safe recovery.

Current app guide
Purpose. This application manages an authoritative SQLite match registry and LIVE five-rule Strategy Performance Manager, with Plan 1/Plan 2 research and a separate recorded-prediction ledger. Browser-local research notes, device-local offline drafts and SoccerRating review data are not the master registry. The workbook mirrors SQLite. Dates and evidence levels matter: audit observations, historical research and live counts must never be conflated.
Verified desktop state — 22 November 2026 (dated audit, not an auto-updating counter)

Method: Read-only inspection of the running desktop APIs (/api/health, /api/strategy-authority/central-verification, /api/importer/status, /api/predictions/recorded), installed Python/JavaScript source and SQLite databases on SAVIOLA. API checks returned HTTP 200 in the local browser. These findings are observations at the audit time; recheck before making an operational decision.

ComponentObserved stateAuthority and limitation
Canonical match registry6,284 records; 6,282 scored, 2 without a valid FT score; all 7 sheets present; core exceptions 0.football_analytics.db, /api/matches, /api/health. Passing core validation does not prove that a real fixture was identified correctly.
LIVE Strategy Manager9 Active; five mandatory gates; 8/8 server verification checks passed; authority cutover and decision capture reported LIVE.SQLite strategy_authority_registry and central-verification API. Dynamic on data change. Do not infer that shadow or legacy pre-cutover browser helpers are a separate live Manager.
Recorded predictions2 recorded decisions, both VOIDED; 0 settled wins/losses; GH₵0 recorded net; no measured win rate./api/predictions/recorded and the prediction ledgers. Historical research returns are not real recorded betting profit.
SoccerRating importerCollector enabled; last verified authenticated check at 21:16 UTC on 22 Nov; 342 stored scans; 0 pending; 12 imported; 1 already registered; latest scan found 0 new fixtures.Separate queue SQLite and importer status API. Only human approval can import a fixture. A successful login/scan does not verify every match field.
Evidence providers8 retained, 8 disabled for new scans. The 8 retained consist of 4 potential voting sources, 2 research-only and 2 supporting/identity sources.sr_source_policy.py. Eligible votes still need 3 independent agreements. Provider registration, saved snippets or artwork are not automatic verification.
Team identity and artwork29,477 team records, 152,121 aliases and 157,313 provider-ID rows; master registry contains 91 team logos and 20 country logos.Counts are stored mappings, not counts of independently approved teams/flags. Fixture country, competition region and crest decisions require review where ambiguous.
Workbook and offlineWorkbook sync pending: no; last recorded successful sync 22 Nov 2026 19:35 (desktop time). Offline drafts are browser IndexedDB data, not saved match records until accepted.Health API and SQLite metadata; last sync is a timestamp, not a guarantee about future synchronizations or an untested Android device.
Web Push2 subscriptions stored. Actual notification display on any particular locked phone not re-tested here.Saved endpoints and push-service acceptance are not equivalent to successful device delivery.
Qualification V2Python six-gate/evidence components are present but explicitly shadow-only; live activation remains disabled in that separate subsystem.qualification_authority_v2.py and qualification_lifecycle_v2.py. The active SQLite five-rule workflow is not replaced by these files.

Open verification boundaries: Independently verified fixture evidence, physical Android offline draft/sync conflicts, push delivery with the phone closed or locked, complete recovery across all databases and phone-local storage, and genuine out-of-sample strategy performance all require separate tests. The archival 17 November table below must remain dated and unchanged.

Current production architecture — rechecked 22 November 2026

Engineering rule: One authority per responsibility. Match/strategy/decision authority must be checked against the live SQLite server and the current dataset; preserve working behavior and do not promote experimental or legacy diagnostic helpers into authority. Additional V2 qualification remains shadow-only until independently validated and explicitly activated.

OrderAuthoritative componentDisplayed outcome
1. Match datafootball_analytics.db with authenticated /api/matches. The workbook is a synchronized mirror, not a competing master.Overview, Matches and live Data & Notes read confirmed records. Offline pending drafts do not count.
2. Strategy qualificationOne LIVE SQLite Strategy Performance Manager with five mandatory rules. The Emerging Lab studies patterns with 50+ settled matches and restudies demoted rules.Strategies verifies the live Manager snapshot; experimental V2 qualification is shadow-only.
3. Plan routingExactly one verified Active trigger routes to Plan 1; two or more route to Plan 2; zero triggers do not enter either plan.Plan 2's retrospective combination selection requires a verified matching replay. No prediction is invented if the replay fails.
4. PerformanceAnalytics combines Plan 1 and Plan 2 once per match. Fixed GH₵100-stake historical P&L is research, not automatically a recorded betting outcome.The separate recorded-prediction ledger tracks actual captured decisions and settlement events.
5. Fixture collectionSeven authenticated SoccerRating strategy pages feed a separate Review Queue; master imports require an explicit human approval.Eight sources remain enabled for new checks: API-Football, TheSportsDB, ESPN and football-data.org are potential voters; Tavily and API Ninjas Football are research-only; OpenFootball and Wikidata/Wikimedia are supporting sources. Eight other sources are disabled for new scans, with historical evidence retained. Quorum still requires three independent eligible agreements.
6. Identity & phoneThe central team registry separates proposed aliases from verified identities. The desktop binds to loopback and uses private Tailscale HTTPS for approved remote access.Offline snapshots, device-local sync drafts and browser-local research notes are distinct from authoritative SQLite data.

Verification limits: Core quality checks do not prove real-world fixture identity or the completeness of optional league, country and kickoff fields. Provider registration does not certify complete source coverage; provider IDs and proposed aliases cannot independently verify a match. Historical strategy research is not out-of-sample validation or official recorded profit. Physical Android behavior, push delivery and multi-database recovery need separate device-level evidence. The dated 17 November register below is an archive, not today's counts.

1. Project purpose and page-by-page guide

This guide reflects the current Football Analytics workflow. Match records live in the app registry, strategy qualification is automatic, and research notes are browser-local. Historical performance describes past records and does not guarantee future results.

PageCurrent roleUse it to
OverviewWorkspace summary.Review current registry activity, strategy status, performance and shortcuts.
MatchesMatch record management.Search and inspect fixtures; online add, edit and delete save to SQLite. Offline Add, Edit and Delete use device-local IndexedDB drafts; the open app syncs them after reconnection. Stale revisions remain conflicts for manual review.
StrategiesAutomated strategy lifecycle.The Emerging Strategy Lab studies candidates; the Performance Manager promotes, monitors and returns strategies automatically. Strategy Match Details examines an individual rule.
AnalyticsCombined Plan 1 + Plan 2 view.Review each qualifying match once, with its Plan label, settled performance, filters, trends, drawdown and retrospective chronological evaluation.
Plan 1Single-trigger ledger.Review matches firing exactly one Active Manager strategy, their performance graph, drawdown and chronological evaluation.
Plan 2Multi-trigger ledger.Review matches firing two or more Active Manager strategies, combination settlement and monitoring charts.
SoccerRating ImporterWebsite collection and approval queue.Scan the authenticated SoccerRating source, review new fixtures, set logos/league/country/kickoff, dismiss or restore archived candidates, and test push notifications. Only approved matches enter SQLite.
Data & NotesRead-only match audit and browser-local notes.Check record quality and sheet coverage, export registry data, save notes and read this guide.
Strategy count is dynamic. The Active list changes as candidates qualify or strategies fail. There is no fixed Manager count or manual qualification step.

Use the shared sidebar to move between pages. The desktop must run for live writes and SoccerRating scans; previously prepared offline screens and drafts can work without it.

2. Application architecture and components

Application pieces

Offline-first — Phase 3: The installed app can view a verified local snapshot of matches, charts, pages, and logos while disconnected. On Matches, offline Add/Edit/Delete actions save device-local pending drafts in IndexedDB after the browser confirms its required local state. When the desktop is online and reachable, the open app uploads these drafts through /api/offline-sync; a successful mutation and matching operation receipt are committed in one SQLite transaction before the local draft is cleared. Duplicate Match IDs, stale revisions and failed validation are NOT overwritten: they remain visible for manual conflict review. Pending drafts never enter SQLite, the workbook, P&L, strategy qualification or calculated graphs until accepted. Offline Add, Edit and Delete match drafts are supported with validation and revision checks; team and country logo changes require online access. Strategy Manager status is authoritative in desktop SQLite. Research notes are browser-local and not synchronized between devices. The desktop SQLite registry remains the master database; offline drafts synchronize when the app is open and authenticated connectivity returns. Background draft synchronization while the app is closed is not guaranteed.

  • Local service: desktop.py starts the HTTP service and desktop window.
  • Canonical match data: football_analytics.db is the SQLite source of truth. /api/matches serves records; /api/health reports service status.
  • Workbook: SOCCER_RATING.xlsx seeds an empty database. Afterwards the app syncs the workbook from SQLite at startup and after supported changes. Direct workbook edits do not update live records.
  • Shared UI: Separate HTML pages use the project’s shared navigation, CSS and scripts.
  • Strategy state: The authoritative Manager Active-strategy registry is stored in SQLite; browser research preferences are not authoritative.
  • Research notes: Notes are also browser-local and separate from match data and Manager status.

Integration boundaries

Matches is the page for changing records. Data & Notes reads /api/matches and optionally /api/health; it does not write match data. Registry CSV is an export snapshot. Notes JSON/CSV actions apply only to notes.

Run the app

Keep the project folder intact. On Windows run START_FOOTBALL_ANALYTICS.bat; it checks Python packages from requirements.txt and starts desktop.py. Keep the launcher/server open. Default address: http://127.0.0.1:8766. Use startup.log or DIAGNOSE_STARTUP.bat if startup fails.

Browser storage matters. Clearing site data or changing browser profile can remove research notes and offline drafts, but does not delete the SQLite Manager registry. Notes backups contain notes only.
3. Data model and record lifecycle

Match record fields

The API provides a stable ID, source sheet and optional source row, date, teams, three 1X2 odds, full-time score, half-time score, league and kick-off time. Actual result is derived from the full-time score; it is not a separate stored field.

Record lifecycle

  1. On first setup, the service can seed an empty SQLite database from the numbered workbook sheets.
  2. Use Matches to add, edit or delete records. The service saves them to SQLite and synchronizes supported changes to the workbook mirror.
  3. Strategy pages compare source sheet and exact trigger odds against Active Manager rules.
  4. A parseable full-time score gives a known match result. A blank or malformed score has no valid full-time score; malformed non-empty values are also flagged by the audit.
  5. A scored match is not automatically a settled bet. It must qualify under a plan, and a Plan 2 combination must have a resolvable selection.

Source sheets

The project expects seven numbered source sheets. Keep the original sheet identity attached to each record; rules from different sheets are not interchangeable.

Status wording: “No valid full-time score” can mean an upcoming fixture or a malformed score. The score-quality check identifies malformed non-empty values.
4. Approved strategy framework and qualification rules

Strategy authority

Strategy Performance Manager is the master strategy engine. Emerging Strategy Lab discovers and studies sheet-specific candidates; the Manager owns the Active registry used by Plan 1, Plan 2, Analytics and Overview. The active count changes over time and is not a fixed catalog.

Five mandatory qualification rules

  1. At least 50 settled matches.
  2. Historical net strictly greater than GH₵1,000.
  3. Historical ROI strictly greater than 0%.
  4. Net strictly greater than GH₵0 over the latest 20 settled matches in chronological order.
  5. Performance Score ≥ 50/100, calculated by the shared client strategy engine.

The score is a weighted, capped indicator combining historical ROI (40%), recent-20 net (35%), settled sample size (15%) and historical net (10%). It is not a probability of future success. The shared client engine also requires complete, usable settlement prices.

The Lab studies candidates at GH₵100 per settled match, using a source sheet, exact Draw or Away trigger odds and a selected 1X2 outcome. Current Active rules are excluded from duplicate candidate discovery.

Automatic promotion and return

  • Server-side qualification reevaluates automatically when relevant saved data changes. Users do not manually qualify or promote a strategy.
  • A candidate meeting all five criteria becomes Active automatically.
  • The Manager rechecks Active strategies on relevant saved data changes; failure of any rule demotes the strategy. A demoted strategy below 50 settled matches remains in SQLite history but is excluded from Lab studies.
  • Every strategy remaining in the Manager is Active. Returned strategies can rejoin after re-qualifying.
  • Exactly one Active trigger routes a match to Plan 1; two or more route it to Plan 2; no Active trigger routes it to neither.

Manager status is persisted in SQLite, not controlled by browser local storage. Historical qualification is a backtest filter, not a promise of future performance.

5. Performance and financial calculations
MeasureCurrent meaning
Settled betA qualifying prediction with a valid actual result and resolved selection.
Win net(selected outcome odds − 1) × GH₵100.
Loss net−GH₵100.
Settled stakesettled bets × GH₵100.
ROInet P&L ÷ settled stake × 100; unresolved/upcoming bets are excluded.
Hit ratewins ÷ (wins + losses) × 100; ties and upcoming records are excluded.
Recent 20 NetNet return over the latest 20 settled strategy matches in chronological order.
Running balanceCumulative settled net in chronological order from GH₵0, unaffected by display sorting.
Combined AnalyticsCombines Plans 1 and 2; each qualifying match appears once and keeps its Plan label.
Read-only evaluation versus strategy qualification. The Maximum Drawdown and retrospective chronological analysis sections exist on Strategy Match Details, Plan 1, Plan 2 and Analytics. They do not contribute to the five qualification gates or the Performance Score. The analysis scope is selectable: the default uses current registry filter results across all pages; a second option uses only rows on the visible registry page.
PageChronological evaluation eligibilityReference and later periods
Strategy Match DetailsAt least 50 settled matches for the selected ruleFirst half of the matching settled ledger is reference; remainder is split into five chronological periods.
Plan 1At least 450 settled single-trigger matches in selected scopeFirst 300 reference matches; remainder divided into five later periods (at least 30 per period).
Plan 2At least 50 settled multi-trigger matches in selected scopeFirst half reference, remainder divided into five periods.
AnalyticsAt least 500 settled combined-plan matches in selected scopeFirst 300 reference matches; five later periods (at least 40 per period), with same-day boundary adjustment.

Maximum Drawdown is the largest decline from a previous peak in chronological cumulative settled P&L, starting at GH₵0. It is also expressed in GH₵100 betting units. Chronological evaluation summarizes later periods for a currently defined strategy/plan; it does not reconstruct rule discovery at each cutoff and is explicitly retrospective, not verified out-of-sample (OOS). Filtering out losses, choosing wins-only results or restricting to one page changes the measured risk and performance. An insufficient sample or invalid dates/odds may prevent evaluation.

Plan 2 combination settlement

Plan 2 groups matches with the same set of Active triggers. The most frequent actual 1X2 result in a group grades its settled matches. A frequency tie is resolved by the highest hypothetical GH₵100-stake net when one outcome has a unique complete result. If the tie remains or the comparison is incomplete, the combination stays unresolved and contributes no settled stake, win/loss or ROI.

Monthly P&L and return metrics use settled results only. Qualifying match counts may include upcoming or unresolved records. These figures describe historical data, not future results.

6. Recommended operating workflows

Update a match

  1. In Matches, add or edit the fixture and verify source sheet, date, teams, league, three odds and score/time fields.
  2. Save through the app. SQLite remains canonical and the service syncs the workbook mirror.
  3. When complete, save a valid full-time score. Strategy and plan results update when current data loads or refreshes.
  4. Review automatic decisions in Strategies, then match routing in Plan 1/Plan 2 and combined results in Analytics. Inspect risk and retrospective chronological panels separately from qualification.
  5. Use Data & Notes to audit fields and source-sheet coverage. It does not correct records.

Keep research notes

Save a short title, category, priority, evidence and next action. Search, filter and sort notes in this browser. Export JSON before clearing site data or changing profiles.

Compare totals

The full registry includes matches that may not trigger a strategy. Plans include only matches triggered by the current Active Manager rules. Analytics combines those plan ledgers.

7. Data quality, validation and change safety

Automated checks

Core checks cover required match fields, settlement formatting and expected source sheets. The optional metadata row in Registry & Quality reports API field coverage separately; missing league, country or kickoff does not turn a valid match into an invalid bet.

  1. Core fields: date, home team, away team and valid sheet number 1–7.
  2. Stable IDs: missing and duplicate match IDs.
  3. Odds: numeric home, draw and away odds greater than 1.
  4. Scores: malformed non-empty full-time scores, and half-time scores exceeding the corresponding full-time score when both parse.
  5. Sheet coverage: any of the seven expected sheets with no records.

The page shows counts by source sheet and separates records with valid full-time scores from those without. A malformed score is flagged and is not counted as scored. The health badge summarizes the live audit; it does not certify every source value or strategy assumption.

Safe changes

  • Use Matches for record edits. Avoid direct SQLite or workbook edits; SQLite is canonical and the service rebuilds its workbook mirror.
  • Keep a recoverable copy before code or data changes and change only intended files.
  • After updates, confirm registry connection, sheet totals, quality results, automatic lifecycle and plan routing.
  • When noting an issue, include page, match ID, sheet, observed behavior and expected behavior.
8. Backups, exports and recovery
CopyWhat it containsBoundary
data_backups snapshotsSQLite/workbook copies made before supported match or logo changes.Keeps up to 20 recent database and workbook snapshots in this project folder. Keep another copy outside the folder.
football_analytics.dbCanonical match records and app metadata.Stop the app before restoring a database snapshot. Restart afterwards to sync the workbook mirror.
SOCCER_RATING.xlsxWorkbook mirror of SQLite.Restoring only this file does not restore the canonical database.
Data & Notes JSON backupResearch notes in this browser.Import replaces the notes currently saved here. It excludes match records and Manager status.
CSV exportsSpreadsheet-friendly snapshots of registry records or notes.Not a full application/database restore.
Verified core recovery checkpointThe existing diagnostics backup folder contains a manifest-verified recovery copy of the five SQLite databases, workbooks, non-secret application files and supporting assets. Its restored HTTP server successfully loaded the nine application pages in desktop and mobile-sized browser tests.Verified on 21 November 2026. It remains on SAVIOLA's own physical disk and is not a separate-device, globally atomic, or complete credential/session restore. It deliberately excludes the Web Push private signing key, authenticated SoccerRating browser profile and phone-local offline drafts. A protected copy on independent storage is still needed.
Browser storageResearch notes, offline match drafts and confirmed sync receipts for this app origin; authoritative Manager registry is in SQLite.Database/workbook backups do not include browser storage. Export pending draft JSON before clearing storage, reinstalling or switching origins.

Verify a backup file before relying on it. In-folder snapshots do not protect against loss of the device or project folder.

9. Troubleshooting guide
SymptomCheck
Registry unavailableKeep the desktop server running; inspect startup.log or open http://127.0.0.1:8766/api/health.
Match absent from Plan 1/2Check source sheet, exact trigger odds and current Active rules. Plan 1 needs one trigger; Plan 2 needs at least two.
Strategy returned or not promotedReview all five qualification values, including Performance Score, and the official SQLite Manager status. Decisions are automatic on server evaluation.
Counts differCompare full registry totals with qualifying plan records, current rules, filters and unresolved/upcoming records. Data & Notes counts scored records, not settled bets.
ROI/P&L differsCheck GH₵100 stake, selected odds, settled-only denominator, Plan 2 combination group and unresolved state.
Workbook differs from appSQLite is authoritative. Edit through Matches, check workbook-sync status in /api/health and use the existing Retry workbook sync action if needed. Restarting is not the default remedy.
Offline edits not uploadedKeep the desktop Python HTTP service running and private Tailscale Serve reachable. Open the phone app, check the connection banner and pending drafts; conflicts require manual review.
Notes or Manager status missingFor notes, check the browser profile and app origin. For Manager status, verify the LIVE SQLite database and server; browser storage is not authoritative.
Notes replaced on importJSON restore replaces the current note list. Restore an earlier JSON backup if available.
10. Glossary and conventions
TermMeaning
Active strategyA rule in the Strategy Performance Manager after passing all five qualification rules.
Emerging candidateA sheet-specific rule under study or returned after a Manager failure.
TriggerMatch source sheet plus exact selected market odds matching a Manager rule.
Plan 1Match with exactly one Active Manager trigger.
Plan 2Match with two or more Active Manager triggers.
Scored recordMatch with a parseable full-time score; it is not automatically a settled bet.
Settled betQualifying prediction with a resolved final win/loss and return.
Recent 20 NetNet P&L over the latest 20 settled matches for one strategy.
Performance ScoreWeighted 0–100 historical score used as the fifth mandatory qualification criterion; threshold at least 50.
Maximum DrawdownLargest previous-peak to subsequent-trough decline in chronological cumulative settled profit, starting from zero.
Retrospective chronological evaluationLater-period historical performance summary of currently selected rules; not verified out-of-sample validation.
Canonical registryThe SQLite match database used by the application.
Workbook mirrorExcel file synchronized from the canonical SQLite registry.
Browser-localData in local storage for the current browser profile and app origin.

Keep this guide current: update it when page roles, data flow, score handling, qualification, formulas or backup behavior change. Do not treat the dated 22 November audit table or the older 17 November archive as live counters. The current match counts are available from the live Registry & Quality page, and current strategy authority must be rechecked against the SQLite server.

11. SoccerRating collection, Review Queue and archive

Source-to-registry boundary

The authenticated soccerrating_connector.py checks supported strategy pages on SoccerRating. soccer_importer.py keeps discovered fixtures and scan/alert history in a separate soccerrating_queue.db. Neither scanning nor receiving a notification adds a match to football_analytics.db. Only the user-approved Approve & Import action enters the canonical Match Registry.

Review and enrichment

The Review Queue displays fixture teams, odds, source sheet, match date and team crests. During review you can specify league, country and optional 24-hour kickoff, and choose or upload supported logos. Previously saved team/country logos are reused when recognized. Confirm match identity and odds before approval. Imported match records participate in analytics only under the same settlement and qualification rules as other registry entries.

Approved review policy: A pending fixture stays in the SoccerRating Review Queue after its scheduled match date. Late approval remains permitted, and its final result can be entered subsequently through Matches. Do not auto-expire or automatically reject pending fixtures solely because their date has passed.

Dismissed archive and restoration

Dismiss hides a pending candidate in the dismissed archive, not in a disk folder. Restore makes it pending for review again. Permanently Delete removes the archived queue entry, not a confirmed match in the master database. A future verified SoccerRating scan may rediscover a removed upcoming fixture. A previously imported fixture deleted from the main registry may return for review following a verified rescan; it is not automatically reapproved.

Queue status is separate from master Match Registry status. Never assume that an empty queue means no source fixtures or that a push notification is proof of successful match import. Collector access restrictions (such as HTTP 403/429) and partial scan failures need diagnosis rather than forced repeated requests.

12. Offline snapshots, drafts, synchronization and diagnostics

Online and offline readiness

The desktop desktop.py service exposes /api/health and /api/matches. A service worker stores a verified match/health snapshot in browser Cache Storage when the record counts agree. Online connectivity, an existing cached snapshot and loaded page records are different states. A previous successful page-load timestamp by itself does not guarantee an available snapshot.

On Matches, Offline diagnostics is a read-only inspection of the current offline flag, in-memory match count, snapshot-response flag, verified Cache Storage, service-worker control and pending/conflicted IndexedDB drafts. Its “App would allow local draft” status describes only the offline-draft path: NO is normal when online and direct saving is available. The diagnostics panel does not create drafts, synchronize, or clear caches.

Offline Add, Edit and Delete

The current client queues Add/Edit/Delete actions in fa-match-pending-edits-v1 IndexedDB. Existing-record edits and deletes require their original server revision. Each queued operation receives a persistent operation ID. Device-local drafts do not count as saved server matches and do not update strategies, P&L or the workbook until the desktop accepts them. Team/country logo changes still require the online service.

Reconnect and reconcile

After connectivity returns, the open app sends pending operations to /api/offline-sync. The backend checks each operation in its own SQLite transaction and records an idempotent receipt. A lost response can be safely retried using the same operation ID. Duplicate Match IDs, invalid changes and stale revisions are rejected or marked for conflict review rather than silently overwriting newer records. A group of ten operations is not one atomic transaction.

Verify the exact changed match on the desktop after synchronization. Pending count zero alone does not establish which change was made. A short transition with online flag active but page data still marked as a cached snapshot can occur until a fresh registry response loads; use a connected page reload to verify live freshness. A full offline-add/edit/delete matrix and interrupted-network conflict scenarios still require controlled testing.

Recovery boundaries

Before clearing browser storage, reinstalling the PWA or changing the Tailscale origin, export pending draft backups. Cache Storage (snapshots), IndexedDB (drafts/receipts) and localStorage (notes and non-authoritative preferences) are distinct. The LIVE Manager register is authoritative in desktop SQLite. A Data & Notes JSON backup contains research notes only; it does not preserve offline drafts, team logos, master SQLite records or synchronization receipts.

13. Web Push delivery, subscriptions and troubleshooting

Device subscriptions and background alerts

The desktop collector can send grouped discovery alerts to independently registered web browsers. Each desktop browser, installed phone app or Chrome profile can have its own subscription. Android Chrome can display Web Push while the app is closed or the phone is locked when notification permission, network access and background operation allow it. The desktop must be running to generate new scan alerts. Do not force-stop the phone browser when testing background delivery.

Understand “Notification System”

Registered devices counts saved endpoints; Last push attempt counts push-service acceptances and rejections. A 201 accepted response indicates the push service accepted the request; it does not prove a particular phone displayed the alert. “This browser”, notification permission and push subscription describe the device currently viewing the page, not the other registered devices. Hence the desktop app can display Not fully verified despite two accepted requests if its own embedded browser has no subscription. A mixture of accepted and rejected requests displays a partial status.

Handle a failed endpoint safely

HTTP 404/410 typically identifies an unavailable subscription that the app can remove automatically. HTTP 403 indicates a rejected request that needs investigation; it does not alone prove the device is old. Check the per-device hashed identifier and provider, then remove or renew only a confirmed obsolete subscription. Avoid clearing the working Samsung or Windows subscription. The push-delivery TTL and access to large notification images may affect delayed/background display; Tailscale access is needed to open protected match details and images.

Operational verification: Send a test alert with the phone app closed and screen locked. Confirm an alert appears on that device, inspect accepted/rejected counts and check its subscription separately. Do not infer locked-screen delivery from the desktop's “Test sent” message alone.

14. Archived verification register — 17 November 2026 (not current)

Evidence basis: Uploaded project snapshot FOOTBALL MAIN APP(20261117-120524).zip. These are archived counts. After subsequent installation commands, the running desktop must be checked again; no archived count is automatically a live measurement.

AreaSnapshot findingEvidence limits
Master records6,274 records, 6,274 with parseable FT scores, 7 represented source sheetsSQLite integrity passed; field consistency does not verify real-world fixture accuracy
Strategy Manager9 stored Active rules; earlier independent audit calculated 261 Emerging candidates with 50+ settledCounts may change as matches or Active rules change
Plan 1 historical research578 matches, 261 wins, 317 losses; simulated net +GH₵21,272 at GH₵100 per betRetrospective and not independent out-of-sample performance
Plan 2 historical research8 matches, 5 wins, 3 losses; simulated net +GH₵380 across three exact combinationsRetrospective selector can use full combination history; 8 is below 50-match walk-forward minimum
Combined Analytics586 research matches, 266 wins, 320 losses; simulated net +GH₵21,652Keep historical research separate from official decision ledger
Official decisions2 decisions stored; both voided, zero officially settled wins/losses or known profitNo support for presenting historical research P&L as recorded bets
SoccerRating importer183 scans; 1 pending candidate, 2 imported, 1 already registeredNetwork scanning and phone Web Push delivery require current-device testing

Current design and deployment boundary

Overview, Matches, Analytics, Strategies, Plan 1, Plan 2 and SoccerRating underwent staged UI redesigns in this development session. Some changes have PowerShell installation confirmations, whereas others remain awaiting device screenshots or live functional verification. This historical appendix does not certify that every local patch is installed or every control works.

Five-rule engine and qualification authority

The Manager registry is SQLite-backed in the audited November 17 source. Emerging Lab requires at least 50 settled matches before studying candidates; promotion requires all five gates: settled ≥50, net >GH₵1,000, ROI >0%, latest 20 net >GH₵0, score ≥50/100 (ROI 40%, recent-20 net 35%, sample 15%, historical net 10%). Risk and retrospective chronological reports are informational only.

Explicit limits still needing live verification

Web Push delivery with the phone locked; active browser service-worker control; offline Add/Edit/Delete conflict and reconnection scenarios; SoccerRating authentication and scan outcomes; real-time Manager updates on Android; and exact post-install source versions. A success message from PowerShell is an installation check, not an end-to-end result.

Importer approval policy

Pending fixtures do not expire when their match date passes. An operator may approve a fixture late, then add its final result in Matches. Scans do not auto-import; duplicate protection remains mandatory.

Backups and provenance

Notes JSON backs up only browser notes. Separate SQLite, workbook, queue, logo and IndexedDB draft backups are required for comprehensive recovery. Do not clear the browser or reinstall without protecting unsynchronized drafts.